public class MethodFindTheMax {
    public static int max2(int a,int b){
        if(a>b) {
            return a;
        }else{
            return b;
        }
    }
    public static int max3(int a,int b,int c){
        if(max2(a,b)>max2(max2(a,b),c)){
            return max2(a,b);
        }else{
            return max2(max2(a,b),c);
        }
    }
    public static void main(String[] args) {
        int a=10;
        int b=20;
        int c=30;
        int max = max3(a,b,c);
        System.out.println(max);
    }
}
